﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Globalization;

namespace Incendios0_1.tools
{
    class UrlValidationRule : ValidationRule
    {
        public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            if (String.IsNullOrWhiteSpace((string)value))
                return new ValidationResult(false, "El url no puede estar vacío");
            else
                return new ValidationResult(true, null);
        }
    }
}
